<?php

class Admin_Form_Login extends Zend_Form
{

    public function init()
    {
        $username = new Zend_Form_Element_Text('name');
        $username->setLabel('Tên đăng nhập')
                 ->setRequired(true)    
                 ->addFilters(array(
                         'StringTrim',
                         'StripTags'
                 ))
                 ->removeDecorator('HtmlTag');
        $pass = new Zend_Form_Element_Password('pass');
        $pass->setLabel('Mật khẩu')
             ->setRequired(true)
             ->addFilters(array(
                     'StringTrim',
                     'StripTags'
             ))
             ->removeDecorator('HtmlTag');
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel('Đăng nhập')
               ->removeDecorator('DtDdWrapper');
        $this->addElements(array($username, $pass, $submit));
    }


}

